package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.*;
import com.wing.cabinet.model.request.CellInventoryInoutDetailForm;
import com.wing.cabinet.model.request.UseInventoryInoutDetailForm;
import com.wing.cabinet.model.response.UseInventoryInoutDetailVO;
import com.wing.web.excel.UseInventoryUserExcelIn;

import java.util.List;
import java.util.Map;

/**
 * 售刀柜领取/暂存柜上/暂存/维修/回收明细-Service
 *
 * @author
 */
public interface UseInventoryInoutDetailService extends IService<UseInventoryInoutDetail> {

    /**
     * 添加
     *
     * @param useInventoryInoutDetailForm
     * @return
     */
    int add(UseInventoryInoutDetailForm useInventoryInoutDetailForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<UseInventoryInoutDetailVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<UseInventoryInoutDetailVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    UseInventoryInoutDetailVO get4appById(Long id);

    UseInventoryInout inventoryIn(List<CellInventoryInoutDetailForm> list, Long cellInventoryInoutId, UseInventoryInout.BusinessType businessType,String deviceCode,String orderCode,Long storageInventoryInoutId,Long businessId);
    void inventoryIn4TempCabInventoryOut(List<UseInventoryInoutDetailForm> list, Long businessId, UseInventoryInout.BusinessType businessType,String deviceCode,StorageInventoryInout.BusinessDetailType businessDetailType,UseInventoryInout.Type type);

    void inventoryIn4RepairOrderSign(List<StorageInventoryInoutDetail> list, Long businessId, UseInventoryInout.BusinessType businessType);

    void inventoryOut(List<UseInventoryInoutDetailForm> list, Long storageInventoryInoutId, String deviceCode, StorageInventoryInout.BusinessType businessType
            , UseInventoryInout.Type type, StorageInventoryInout.BusinessDetailType businessDetailType,String remark);

    void inventoryOut(List<UseInventoryInoutDetailForm> list,StorageInventoryInout.BusinessType businessType,UseInventoryInout.Type type,StorageInventoryInout.BusinessDetailType businessDetailType,String remark);


    void importExcel(List<UseInventoryUserExcelIn> list);
}
